import org.junit.*;
import static org.junit.Assert.assertEquals;

public class tritypTest {
    trityp tri=new trityp();

    //    Triang = 1 if triangle is scalene
    //    Triang = 2 if triangle is isosceles
    //    Triang = 3 if triangle is equilaterala
    //    Triang = 4 if not a triangle

    @Test
    public void testTriang_4_1(){
        assertEquals(4,tri.Triang(1,2,7));
    }
    @Test
    public void testTriang_4_2(){
        assertEquals(4,tri.Triang(-1,-5,7));
    }
    @Test
    public void testTriang_4_3(){
        assertEquals(4,tri.Triang(3,6,3));
    }

    @Test
    public void testTriang_3_1(){
        assertEquals(3,tri.Triang(3,3,3));
    }
    @Test
    public void testTriang_2_1(){
        assertEquals(2,tri.Triang(3,3,4));
    }
    @Test
    public void testTriang_2_2(){
        assertEquals(2,tri.Triang(4,3,3));
    }
    @Test
    public void testTriang_2_3(){
        assertEquals(2,tri.Triang(3,4,3));
    }
    @Test
    public void testTriang_1_1(){
        assertEquals(1,tri.Triang(3,4,5));
    }
}